<template>
  <view class="flex flex-col items-center justify-center pt-24 pb-4">
    <image
      :src="emptyData[type].img"
      mode="widthFix"
      class="w-20 h-auto mx-auto" />
    <view class="py-2.5 u-tips-color">{{ emptyData[type].text }}</view>
  </view>
</template>

<script setup lang="ts">
defineProps(['type']);

const emptyData = ref([
  {
    text: '暂无设备',
    img: 'https://onelive.obs.cn-south-1.myhuaweicloud.com/uniapp/static/empty6.png'
  },
  {
    text: '暂无医生',
    img: 'https://onelive.obs.cn-south-1.myhuaweicloud.com/uniapp/static/empty2.png'
  },
  {
    text: '暂无机构',
    img: 'https://onelive.obs.cn-south-1.myhuaweicloud.com/uniapp/static/empty1.png'
  },
  {
    text: '暂无订单',
    img: 'https://onelive.obs.cn-south-1.myhuaweicloud.com/uniapp/static/empty3.png'
  },
  {
    text: '暂无消息',
    img: 'https://onelive.obs.cn-south-1.myhuaweicloud.com/uniapp/static/empty4.png'
  },
  {
    text: '暂无数据',
    img: 'https://onelive.obs.cn-south-1.myhuaweicloud.com/uniapp/static/empty5.png'
  }
])
</script>

<style lang="scss" scoped></style>
